<?php
/**
 * Created by PhpStorm.
 * User: kb130
 * Date: 2017/8/21
 * Time: 14:34
 */

namespace util\validate\rules;

/**
 * 验证值是否是数字和字母的组合
 *
 * Class AlphaNum
 * @package validate\rules
 */
class AlphaNum extends BaseRule
{
    public function verify()
    {
        $match = '/^[0-9a-zA-Z]$/';

        return preg_match($match, $this->value);
    }
}